package org.semanticflash.rdf.io.rdfjson
{
	
	
	import com.bigflexlib.core.markers.IStub;
	
	
	
	/**
	 * 
	 * 
	 * http://n2.talis.com/wiki/RDF_JSON_Specification
	 * 
	 * @author aldo.bucchi@gmail.com
	 * 
	 */	
	public class RDFJSONWriter implements IStub
	{

	}
}
/*


   1.  Start a JSON object (called the root object)
   2. Group all the triples by subject
   3. For each subject:
         1. Create a JSON object for the subject (called the subject object)
         2. Group all triples having the current subject by predicate
         3. For each predicate:
               1. Create a JSON array (called the value array)
               2. Select all triples having the current subject and current predicate
               3. For each value:
                     1. Create a JSON object (called the value object)
                     2. Add a key/value pair to the value object with the key being the string "value" and the value being the lexical value of the triple value
                     3. Add a key/value pair to the value object with the key being the string "type" and the value being one of "literal", "uri" or "bnode" depending on the type of the triple's value
                     4. If the triple's value is a plain literal and has a language then add a key/value pair to the value object with the key being the string "lang" and the value being the language token
                     5. If the triple's value is a typed literal then add a key/value pair to the value object with the key being the string "datatype" and value being the URI of the datatype
                     6. Push the value object onto the end of the value array 
               4. Add a key/value pair to the subject object with the key being the predicate URI and the value being the value array 
         4. Add a key/value pair to the root object with the key being the URI or blank node identifier of the subject and the value being the subject object created in the previous step 

 
 
 */